home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000222_news@columbia.edu _Mon Apr 24 13:06:36 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  7KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id NAA06779
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Mon, 24 Apr 2000 13:06:36 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA00941
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 24 Apr 2000 13:06:35 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id MAA19975
  10.     for kermit.misc@watsun.cc.columbia.edu; Mon, 24 Apr 2000 12:51:07 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: Ishikawa <ishikawa@yk.rim.or.jp>
  13. Subject: Re: Parity incorrectly reported, and RTS/CTS problem on Solaris 7 for 
  14. Date: Tue, 25 Apr 2000 01:41:29 +0900
  15. Organization: RIMNET InterNetNews site
  16. Message-ID: <39047938.734774D0@yk.rim.or.jp>
  17. To: kermit.misc@columbia.edu
  18.  
  19. Frank da Cruz wrote:
  20.  
  21. > In article <3904650F.A10717AF@yk.rim.or.jp>,
  22. > Ishikawa  <ishikawa@yk.rim.or.jp> wrote (of C-Kermit 7.0):
  23. > : First, thank you for the great package.  I asked a few questions
  24. > : concerning the usage of 8 bits byte, and an even parity several weeks ago
  25. > : on linux and after the kind answers I could get kermit going on Debian
  26. > : GNU/linux well.
  27. > :
  28. > Good...
  29. >
  30.  
  31. Again thank you!
  32.  
  33. >
  34. > : [1] One cosmetic bug.
  35. > .
  36.  
  37.     ...
  38.  
  39. >
  40. > This is not actually a bug.  As far as Kermit protocol is concerned, the
  41. > parity really is "none".  This means it is using all 8 bits of each byte for
  42. > data, and it doesn't have to use single shifts or locking shifts to encode
  43. > bytes whose 8th data bit is 1.  But yes, I agree it might be clearer to list
  44. > something like "none (8E1)" here.  I'll add it to my list.
  45. >
  46.  
  47. Again, your clarification is appreciated.
  48.  
  49. >
  50. > : Now a little complicated one.
  51. > : I am not sure if this is a bug or feature.
  52. > :
  53. > : [2] A user expectancy problem.  RTS/CTS is not supported by
  54. > :     pre-compiled binary for Solaris 7 for x86.
  55. > :
  56. > : But kermit doesn't complain if I specify rts/cts flow-control, and
  57. > : SILENTLY ignored my request, so to speak.
  58. > :
  59. > Thanks for the report.  We don't have hands-on access to Solaris x86 (any
  60. > version) here, so never noticed this one.  All our Solaris x86 binaries were
  61. > built at remote sites, where we couldn't experiment with modems, or sent in
  62. > by others.  (Note: we still don't have a Solaris 2.6 x86 binary.)
  63.  
  64. Well, maybe I can make the solaris 7 for x86 binary later on if you need one
  65. once we figure out what the correct settings of macros should be.
  66.  
  67. >
  68. > C-Kermit 7.0 for Solaris is built with -DCK_RTSCTS, which tells it to
  69. > include the commands for setting, showing, and using RTS/CTS.  This has been
  70. > true ever since Solaris 2.0.  It happens automatically in ckcdeb.h, because
  71. > STERMIOX is defined, which in turn means that <system/termiox.h> is available,
  72. > which defines the System-V based hardware flow-control API.
  73.  
  74. Sorry, I didn't dig enough and notice this sysV API.  I was just
  75. reading through the code to find POSIX  RTSCTS handling code which
  76. I think works on linux.
  77.  
  78. >
  79. > : It simply failed to set RTS/CTS and merrily goes on processing.  Beat me why
  80. > : it did NOT give me any warning about not-supported RTS/CTS or maybe the code
  81. > : forgot to handle the non-supported case since the code to handle CRTSCTS is
  82. > : cluttered with many #ifdef's.)
  83. > :
  84. > That's what makes it work on hundreds of different platforms :-)
  85. >
  86.  
  87. Yeah, right :-)
  88. I need to insert a few fprintf lines in order to find out if the code I wanted to
  89.  
  90. execute was really get executed.
  91.  
  92. >
  93. > The reason you didn't get a warning is that C-Kermit is indeed calling the
  94. > <system/termiox.h> APIs for setting RTS/CTS, and the APIs are not returning
  95. > an error.  (Take a debug log and search for "tthflow".)
  96. >
  97.  
  98. Hmm... I will look into it. Here is a dumb question. What is the proper way to
  99. obtain debug log? I found the usage of macros, which seemed to be the
  100. debug macros in the source code, but didn't find out how to enable it
  101. from the command line.
  102.  
  103. >
  104. > : Anyway, after I modified the supplied `makefile' to define
  105. > : POSIX_CRTSCTS (and inserted a few fprintf(stderr,"...") lines just to
  106. > : let me make sure the expected lines to enable RTS/CTS flow control are
  107. > : executed) and recompiled the C-kermit-7 code, I verified that now that
  108. > : the RTS/CTS enable code is executed and the transfer at 115200 bps
  109. > : (8E1) with flow-control of rts/cts works and transfer of wermit binary
  110. > : (about 1.6MB) using packet length of 3999 (default) with D-type packet
  111. > : went well(!).
  112. > :
  113. > Good!  So it seems that the System-V RTS/CTS APIs have stopped working in
  114. > Solaris 8 and a non-backwards-compatible switch as been made to the POSIX
  115.  
  116. ***** this should read solaris7 (since mine is solaris 7), but probably solaris 8
  117.  
  118. behaves the same.
  119.  
  120. >
  121. > APIs.  This is a "double ended error": the old API is broken, but it doesn't
  122. > inform the application of any problem.
  123.  
  124. It looks to be the case.
  125.  
  126. >
  127. >
  128. > : I have no idea at this moment if solaris 7 for sparc (not x86) should work
  129. > : with this modification, but it should.  If not, maybe we need a different
  130. > : target (solars7x86 against solaris7) just in case. YMMV.
  131. > :
  132. > This, of course, is an important question.  What is the earliest version of
  133. > Solaris that has the POSIX API for RTS/CTS available (and working!)?  What
  134. > is the latest version of Solaris that has the System V API working?  Is there
  135. > a difference between x86 and Sparc versions?
  136. >
  137.  
  138. I can check 2.5.1 for sparc, 2.4 for x86 if necessary (and solaris 7 for x86 as I
  139.  
  140. explained above.)
  141.  
  142. >
  143. > : Here is the patch to makefile (for solaris 7 for x86).
  144. > : I simply inserted -DPOSIX_CRTSCTS.
  145. > : (Is this macro supposed to be automatically defined when one says
  146. > : -DPOSIX? From the comment I found in the code, I don't think so, but
  147. > : just have to ask.)
  148. > :
  149. > No, it is not, and should not be.  You can never assume anything like this.
  150. > To C-Kermit, -DPOSIX means POSIX 1.0, which has nothing whatsoever to say
  151. > about hardware flow control; POSIX OS's implement hardware flow control in
  152. > all sorts of creative and incompatible ways.
  153. >
  154. > I'm cross-posting this reply to the Solaris lists in case anybody there can
  155. > answer the questions above.  Unfortunately, however, the only real test is
  156. > to build C-Kermit both with and without -DPOSIX_CRTSCTS on every Solaris
  157. > platform and test the flow control.
  158. >
  159. > - Frank
  160.  
  161. Hmm ... tough cases to solve. Come to think of it, the sparc box I have access
  162. has
  163. already used up both ports and I am not sure if I can remove the serial line for
  164. a while
  165. to test kermit (and I need somewhat longer  cross-cables!). We need many
  166. volunteers.
  167.  
  168. Anyway, again million thanks!
  169.  
  170. I wonder MS has this kind of quick feedback from none other than the
  171. one of the original authors of the software :-)
  172.  
  173. Happy Hacking,
  174.  
  175. Ishikawa
  176.  
  177.  
  178.  
  179.